<?php
/*
 * notes:
 *   this tpl master submodule form
 *
 * if clone as another one, below tags need to be replace to ur target module tag
 * "weave_order"
 */
$moduleName   = $invokeParams['moduleName'];
$subItemModuleName   = $invokeParams['subItemModuleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['subItemModuleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['subItemModuleName']);
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['subItemModuleName']}/".WacControlTableType::$moduleSubForm.".js\">";
echo "</script>";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol" style="margin-right: 1px; width: 350px;">
        <h3>
        <?php
        echo $invokeParams['caption'];
        ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">生产单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_production_order_code"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">织造单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_weave_order_code"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">供应厂商</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_supplier_name"></div>
               </div>
               <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">发往工厂</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_factory_name"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">货物单位</div>
                <div class="wacFormItemRight">
                    <select name="goods_number_unit_code" id="<?php echo $subItemModuleName ?>_goods_number_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">坯布名称</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_goods_category_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">出货数量</div>
                <div class="wacFormItemRight">
                    <input name="goods_number" id="<?php echo $subItemModuleName ?>_goods_number" value="" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">单价</div>
                <div class="wacFormItemRight">
                    <input name="goods_number_unit_price" id="<?php echo $subItemModuleName ?>_goods_number_unit_price" value="" type="text" class="validate[required,custom[onlyCurrency]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">加工费</div>
                <div class="wacFormItemRight">
                    <input name="processing_fee" id="<?php echo $subItemModuleName ?>_processing_fee" value="0" type="text" class="validate[required,custom[onlyCurrency]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
    </div>
</div>
    <div class="wacFormSecondCol" style="margin-right: 1px; margin-left: -35px; width:370px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">消耗纬纱品种</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_cotton_goods_category_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">纬纱消耗量</div>
                <div class="wacFormItemRight">
                    <input name="cotton_yarn_consume_amount" id="<?php echo $subItemModuleName ?>_cotton_yarn_consume_amount" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">每码棉纱用量</div>
                <div class="wacFormItemRight">
                    <input name="cotton_yarn_unit_consume" id="<?php echo $subItemModuleName ?>_cotton_yarn_unit_consume" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">棉纱应用量</div>
                <div class="wacFormItemRight">
                    <input name="cotton_yarn_expect_consume" id="<?php echo $subItemModuleName ?>_cotton_yarn_expect_consume" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">棉纱损耗率%</div>
                <div class="wacFormItemRight">
                    <input name="cotton_yarn_attrition_rate" id="<?php echo $subItemModuleName ?>_cotton_yarn_attrition_rate" type="text" class="validate[required,custom[onlyDigit]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">消耗经纱品种</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_warp_yarn_goods_category_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">经纱消耗量</div>
                <div class="wacFormItemRight">
                    <input name="warp_yarn_consume_amount" id="<?php echo $subItemModuleName ?>_warp_yarn_consume_amount" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">每码经纱用量</div>
                <div class="wacFormItemRight">
                    <input name="warp_yarn_unit_consume" id="<?php echo $subItemModuleName ?>_warp_yarn_unit_consume" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">经纱应用量</div>
                <div class="wacFormItemRight">
                    <input name="warp_yarn_expect_consume" id="<?php echo $subItemModuleName ?>_warp_yarn_expect_consume" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">经纱损耗率%</div>
                <div class="wacFormItemRight">
                    <input name="warp_yarn_attrition_rate" id="<?php echo $subItemModuleName ?>_warp_yarn_attrition_rate" type="text" class="validate[required,custom[onlyDigit]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">经密</div>
                <div class="wacFormItemRight">
                    <input name="warp_density" id="<?php echo $subItemModuleName ?>_warp_density" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>
    <div class="wacFormThirdCol" style="margin-right: 1px; margin-left: -40px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA wacFormContentSmall">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">浆次缸号</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <div id="<?php echo $subItemModuleName ?>_jar_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">颜色</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <div id="<?php echo $subItemModuleName ?>_color_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">纺织机号</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="spinner_id" id="<?php echo $subItemModuleName ?>_spinner_id" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">纬纱排列</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="filling_yarn_arrangement_id" id="<?php echo $subItemModuleName ?>_filling_yarn_arrangement_id" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">经纱排列</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="warp_yarn_arrangement_id" id="<?php echo $subItemModuleName ?>_warp_yarn_arrangement_id" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">质量</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="goods_quantity" id="<?php echo $subItemModuleName ?>_goods_quantity" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">筘幅</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="reed_space" id="<?php echo $subItemModuleName ?>_reed_space" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">筘号</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="reed_code" id="<?php echo $subItemModuleName ?>_reed_code" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">组织</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="texture" id="<?php echo $subItemModuleName ?>_texture" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">匹长</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="piece_length" id="<?php echo $subItemModuleName ?>_piece_length" type="text" class="validate[required,custom[onlyNumber]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">效果要求</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="effect_requirement" id="<?php echo $subItemModuleName ?>_effect_requirement" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">纬密</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="filling_density" id="<?php echo $subItemModuleName ?>_filling_density" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">

        <hr class="wacFormRuler" style="width:850px; float:inherit;" />
            <div class="wacFormRow">
                <div class="wacFormItemLeft">备注</div>
                <div class="wacFormItemRight">
                    <textarea name="memo" id="<?php echo $subItemModuleName ?>_memo" class="ui-widget-content ui-corner-all" cols="108" rows="4"></textarea></div>
                <div class="wacFormClear"></div>
            </div>
   <div class="wacFormClear"></div>
      <input name="btnSubmit" id="<?php echo $subItemModuleName ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
      &nbsp;&nbsp;
      <input name="btnClose" id="<?php echo $subItemModuleName ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $subItemModuleName ?>_id" value="0">
    <input type="hidden" name="weave_order_id" id="<?php echo $subItemModuleName ?>_weave_order_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>